package iss.anxios.dao;

import iss.anxios.dto.RespondentType;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository("respondenttypedao")
public class RespondentTypeDaoImpl implements RespondentTypeDao{

	@PersistenceContext
	EntityManager em;
	
	@Transactional
	@SuppressWarnings("unchecked")
	public List<RespondentType> ListRespondentType() {
		return em.createQuery("select rt from RespondentType rt").getResultList();
	}

}
